package com.zs.toolbox.web2j.system.core.service;

import com.zs.toolbox.web2j.system.core.constant.WtEVcodePurpose;

/**
 * @author shuai.zhang  on 2018/9/26
 * @description
 */
public interface WtVcodeService {
    String newImageCode(String key);

    void verifyImageCode(String s, String imageCode);
    void verifyEmailOrPhoneVcode(String key, String vcode);

    void newEmailVcode(WtEVcodePurpose vcodeType, String email);

    void newPhoneVcode(WtEVcodePurpose vcodeType, String phone);

    void clearCacheSendCode(String key);

    void clearCacheImageCode(String imageCodeKey);
}
